#include <stdio.h>
void test ()
{
    //int n = 1;
    static int n = 1;
    n++;
    printf("%d\n", n);
}
int main()
{
    //static生命周期的延长
    int i = 0;
    for (i = 0; i < 5; i++)
    {
        test ();
    }
    return 0;
}